import {request,pmiUrl} from '@/utils/request'

export function login(data) {
  return request({
    url: '/login/inner/login',
    method: 'get',
    params: {phone:data.phone}
  })
}

export function getInfo({clinicId, phone}) {
  return request({
    url: '/mgmt/token',
    method: 'get',
    params: {clinicId, phone}
  })
}


export function getUserMenu(staffId) {
  return request({
    url: '/server/menu/staff',
    method: 'get',
    params: {staffId}
  })
}

export function logout() {
  return request({
    url: '/vue-element-admin/user/logout',
    method: 'post'
  })
}


export function getEnableList() {
  return request({
    url: '/managerRPC/getEnableList',
    method: 'get'
  })
}
export function ybCommon(data) {
  return pmiUrl({
    url: '/data/send/common',
    method: 'post',
    data
  })
}


